package com.saihai.jiankang.ufZhglDt1.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.saihai.jiankang.ufZhglDt1.mapper.UfZhglDt1Mapper;
import com.saihai.jiankang.ufZhglDt1.domain.UfZhglDt1;
import com.saihai.jiankang.ufZhglDt1.service.IUfZhglDt1Service;

/**
 * 角色关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-05
 */
@Service
public class UfZhglDt1ServiceImpl implements IUfZhglDt1Service 
{
    @Autowired
    private UfZhglDt1Mapper ufZhglDt1Mapper;

    /**
     * 查询角色关联
     * 
     * @param id 角色关联主键
     * @return 角色关联
     */
    @Override
    public UfZhglDt1 selectUfZhglDt1ById(Long id)
    {
        return ufZhglDt1Mapper.selectUfZhglDt1ById(id);
    }

    /**
     * 查询角色关联列表
     * 
     * @param ufZhglDt1 角色关联
     * @return 角色关联
     */
    @Override
    public List<UfZhglDt1> selectUfZhglDt1List(UfZhglDt1 ufZhglDt1)
    {
        return ufZhglDt1Mapper.selectUfZhglDt1List(ufZhglDt1);
    }

    /**
     * 新增角色关联
     * 
     * @param ufZhglDt1 角色关联
     * @return 结果
     */
    @Override
    public int insertUfZhglDt1(UfZhglDt1 ufZhglDt1)
    {
        return ufZhglDt1Mapper.insertUfZhglDt1(ufZhglDt1);
    }

    /**
     * 修改角色关联
     * 
     * @param ufZhglDt1 角色关联
     * @return 结果
     */
    @Override
    public int updateUfZhglDt1(UfZhglDt1 ufZhglDt1)
    {
        return ufZhglDt1Mapper.updateUfZhglDt1(ufZhglDt1);
    }

    /**
     * 批量删除角色关联
     * 
     * @param ids 需要删除的角色关联主键
     * @return 结果
     */
    @Override
    public int deleteUfZhglDt1ByIds(Long[] ids)
    {
        return ufZhglDt1Mapper.deleteUfZhglDt1ByIds(ids);
    }

    /**
     * 删除角色关联信息
     * 
     * @param id 角色关联主键
     * @return 结果
     */
    @Override
    public int deleteUfZhglDt1ById(Long id)
    {
        return ufZhglDt1Mapper.deleteUfZhglDt1ById(id);
    }
}
